package com.swinw.asumall.order.feign;

import com.swinw.asumall.order.vo.SkuInfoVo;
import com.swinw.asumall.order.vo.SpuInfoVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("product-service")
public interface ProductFeginService {

    @RequestMapping("/product/skuinfo/skuinfo/{skuId}")
    SkuInfoVo skuInfo(@PathVariable("skuId") Long skuId);

    @RequestMapping("/product/skuinfo/spuinfo/{skuId}")
    SpuInfoVo spuInfo(@PathVariable("skuId") Long skuId);
}
